import request from '@/utils/request'
export default {
  getPageList(page, limit, searchObj) {
    return request({
      url: `/eduservice/coursefront/getCourseFront/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  //获得一级学科
  getAllSubject(){
    return request({
        url: '/eduservice/subject/getAllSubject',
        method: 'get'
      })
   },

  // 获取课程二级分类
  getNestedTreeList2() {
    return request({
      url: `/eduservice/edu/course/list2`,
      method: 'get'
    })
  },
  getById(courseId,token){
    return request({
      url: `/eduservice/coursefront/selectCourseInfo/${courseId}?token=`+token,
      method: 'get'
    })
  }
}